<%= error_messages_for 'user' -%>
<% if flash[:notice]  -%>
  <div class="sysmsg"><%= flash[:notice] -%></div>
  <% flash[:notice] = nil -%>
<% end -%>

<div id="sign-in" class="ui-roundedbox">
  <div class="ui-roundedbox-corner ui-roundedbox-tl">
    <div class="ui-roundedbox-corner ui-roundedbox-tr">
      <div class="ui-roundedbox-corner ui-roundedbox-bl">
        <div class="ui-roundedbox-corner ui-roundedbox-br">
          <div class="ui-roundedbox-content">
            <h2>Login to Microblog</h2>
            <% form_tag({:controller => :login, :action => :index},
                :method => :post, :class => "vf lf") do -%>
              <p>
                <label for="name" class="label_input">Name: </label>
                <%= text_field_tag :name, params[:name], :size => 40 -%>
              </p>
              <p>
                <label for="user_password" class="label_input">Password: </label>
                <%= password_field_tag :password, params[:password], :size => 40-%>
              </p>
              <p class="act">
                <%= submit_tag "Login", :class => "formbutton" -%>
              </p>
            <% end -%>
            <div id="sign-bottom">
              <p>
                Don't hava a Microblog account?
                <%= link_to("Sign Up Now", :controller => :login, :action => "signup") -%>!
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
